/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace ATkg.BizAppProject.DomainModels
{
    [Entity(TableCnName = "CCD结单",TableName = "Ccd_Report",DBServer = "ServiceDbContext")]
    public partial class Ccd_Report:ServiceEntity
    {
        /// <summary>
       ///电镀号
       /// </summary>
       [Display(Name ="电镀号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string DianduNo { get; set; }

       /// <summary>
       ///结单人
       /// </summary>
       [Display(Name ="结单人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Repoter { get; set; }

       /// <summary>
       ///设备号
       /// </summary>
       [Display(Name ="设备号")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int DeviceNo { get; set; }

       /// <summary>
       ///产品代码
       /// </summary>
       [Display(Name ="产品代码")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ProductId { get; set; }

       /// <summary>
       ///产品规格
       /// </summary>
       [Display(Name ="产品规格")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Spec { get; set; }

       /// <summary>
       ///产品性能
       /// </summary>
       [Display(Name ="产品性能")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Grade { get; set; }

       /// <summary>
       ///来料总数（pcs）
       /// </summary>
       [Display(Name ="来料总数（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int IncomeQty { get; set; }

       /// <summary>
       ///来料重量（kg）
       /// </summary>
       [Display(Name ="来料重量（kg）")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal IncomeWeight { get; set; }

       /// <summary>
       ///结单总数量（pcs）
       /// </summary>
       [Display(Name ="结单总数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int DoneQty { get; set; }

       /// <summary>
       ///合格总数量（pcs）
       /// </summary>
       [Display(Name ="合格总数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int OkQty { get; set; }

       /// <summary>
       ///合格上档数量（pcs）
       /// </summary>
       [Display(Name ="合格上档数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int OkQtyA { get; set; }

       /// <summary>
       ///合格中档数量（pcs）
       /// </summary>
       [Display(Name ="合格中档数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int OkQtyB { get; set; }

       /// <summary>
       ///合格下档数量（pcs）
       /// </summary>
       [Display(Name ="合格下档数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int OkQtyC { get; set; }

       /// <summary>
       ///外观NG总数量（pcs）
       /// </summary>
       [Display(Name ="外观NG总数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int AppearanceNgQty { get; set; }

       /// <summary>
       ///外观NG上档数量（pcs）
       /// </summary>
       [Display(Name ="外观NG上档数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int AppearanceNgQtyA { get; set; }

       /// <summary>
       ///外观NG中档数量（pcs）
       /// </summary>
       [Display(Name ="外观NG中档数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int AppearanceNgQtyB { get; set; }

       /// <summary>
       ///外观NG下档数量（pcs）
       /// </summary>
       [Display(Name ="外观NG下档数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int AppearanceNgQtyC { get; set; }

       /// <summary>
       ///尺寸NG总数量（pcs）
       /// </summary>
       [Display(Name ="尺寸NG总数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int SizeNgQty { get; set; }

       /// <summary>
       ///几何NG数量（pcs）
       /// </summary>
       [Display(Name ="几何NG数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int GeometryNgQty { get; set; }

       /// <summary>
       ///形位NG数量（pcs）
       /// </summary>
       [Display(Name ="形位NG数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int FormNgQty { get; set; }

       /// <summary>
       ///工残数量（pcs）
       /// </summary>
       [Display(Name ="工残数量（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int GongcanQty { get; set; }

       /// <summary>
       ///流失片数（pcs）
       /// </summary>
       [Display(Name ="流失片数（pcs）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int LossQty { get; set; }

       /// <summary>
       ///是否有报废记录
       /// </summary>
       [Display(Name ="是否有报废记录")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ScrapRecord { get; set; }

       /// <summary>
       ///判定结果
       /// </summary>
       [Display(Name ="判定结果")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string JudgeResult { get; set; }

       /// <summary>
       ///合格率（%）
       /// </summary>
       [Display(Name ="合格率（%）")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal QualifiedRate { get; set; }

       /// <summary>
       ///外观NG率（%）
       /// </summary>
       [Display(Name ="外观NG率（%）")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal AppearanceNgRate { get; set; }

       /// <summary>
       ///尺寸NG率（%）
       /// </summary>
       [Display(Name ="尺寸NG率（%）")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal SizeNgRate { get; set; }

       /// <summary>
       ///工残率（%）
       /// </summary>
       [Display(Name ="工残率（%）")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal GongCanRate { get; set; }

       /// <summary>
       ///流失率（%）
       /// </summary>
       [Display(Name ="流失率（%）")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal LossRate { get; set; }

       /// <summary>
       ///是否有效(0:否,1:是)
       /// </summary>
       [Display(Name ="是否有效(0:否,1:是)")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int IsValid { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Remarks { get; set; }

       /// <summary>
       ///创建人ID
       /// </summary>
       [Display(Name ="创建人ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long CreateId { get; set; }

       /// <summary>
       ///创建人名/结单人
       /// </summary>
       [Display(Name ="创建人名/结单人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间/保存日期
       /// </summary>
       [Display(Name ="创建时间/保存日期")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改人ID
       /// </summary>
       [Display(Name ="修改人ID")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人名
       /// </summary>
       [Display(Name ="修改人名")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///键
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="键")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long Id { get; set; }

       /// <summary>
       ///合格不分档总数量
       /// </summary>
       [Display(Name ="合格不分档总数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int OkNoGapQty { get; set; }

       /// <summary>
       ///外观NG不分档总数量
       /// </summary>
       [Display(Name ="外观NG不分档总数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int AppearanceNgNoGapQty { get; set; }

       /// <summary>
       ///是否分档
       /// </summary>
       [Display(Name ="是否分档")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string SelectGapYN { get; set; }

       
    }
}